﻿using System.ComponentModel.Composition;
using System.Windows.Controls;
using ScrumFactory.Composition.ViewModel;

namespace ScrumFactory.Backlog {
    
    /// <summary>
    /// Interaction logic for BacklogItemDetailView.xaml
    /// </summary>
    
    public partial class BacklogItemDetail : UserControl, IBacklogItemDetailView {

        private IBacklogItemDetailViewModel model;

        /// <summary>
        /// Initializes a new instance of the <see cref="BacklogItemDetail"/> class.
        /// </summary>
        public BacklogItemDetail() {            
            InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the model.
        /// </summary>
        /// <value>The model.</value>    
        public IBacklogItemDetailViewModel Model {
            get {
                return this.model;
            }
            set {
                this.model = value;
                this.DataContext = value;
            }
        }

        
    }
}
